@import './common/var.css';

.van-cell {
  width: 100%;
  display: table;
  padding: 10px 15px;
  box-sizing: border-box;
  line-height: 24px;
  background-color: $white;
  color: $text-color;
  font-size: 14px;
  overflow: hidden;

  &:not(:last-child)::after {
    border-bottom-width: 1px;
  }

  &-group {
    padding-left: 0px;
    background-color: $white;
  }

  &__title {
    display: table-cell;

    .van-icon {
      font-size: 16px;
      margin-right: 8px;
      vertical-align: middle;
    }
  }

  &__text {
    vertical-align: middle;
  }

  &__label {
    display: block;
    font-size: 12px;
    line-height: 1.2;
    color: $gray-lighter;
  }

  &__value {
    display: table-cell;
    text-align: right;
    vertical-align: middle;
    overflow: hidden;
    font-size: 12px;
    color: $gray-lighter;

    &--link {
      padding-right: 20px;
    }

    &--alone {
      text-align: left;
    }

    &--enhance {
      color: $red;
    }

    &--badge {
      background: $red;
      color: $white;
      border-radius: 2px;
      font-size: 10px;
      padding: 2px;
    }

    &--avatar {
      width: 25px;
      height: 25px;
      border-radius: 12.5px;
      vertical-align: middle;
    }
  }

  &--required {
    overflow: visible;

    &::before {
      content: '*';
      position: absolute;
      left: -7px;
      font-size: 14px;
      color: $red;
    }
  }

  &__right-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: $gray-dark;
    font-size: 12px;
  }
}
